<?php 
namespace Controller;
class PostListController
{
	public function DoControll()
	{
		// skriver ut hela listan med alla poster från bloggen 
		$database = new \Common\Database();
		$database->Connect(new \Common\DBConfig());
		$BloggView = new \View\BloggView();
		$BloggList = new \Model\Blogglist($database);
		$posts = $BloggList->getAllPosts();
		$return = $BloggView->ShowListOfPosts($posts);
		return $return;
	}
}
